package com.example.weather.service;

import com.example.weather.dto.WeatherResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

@FeignClient(value = "SEARCHDEMO/weather")
public interface SearchServiceClient {

    @RequestMapping(value = "/searchcity")
    public WeatherResponse searchcity(@RequestParam("cityid")String cityid);

}
